package com.fsu.database.dao;

/**
 * Read-only base class for all media
 * @author Bonazza
 *
 */
public class Media {
	/**
	 * Media's title
	 */
	protected String title;
	/**
	 * The year the Media was released
	 */
	protected int year;
	/**
	 * Current price of the media
	 */
	protected float price;
	
	/**
	 * Constructor
	 * @param title
	 * @param year
	 * @param price
	 */
	public Media(String title, int year, float price) {
		this.title = title;
		this.year = year;
		this.price = price;
	}
	
	/** Accessor methods **/
	public String getTitle() { return title; }
	public int getYear() { return year; }
	public float getPrice() { return price; }
	
	public String toString() {
		return "title: " + title + "\nyear: " + year + "\nprice: " + price;
	}
}
